package com.yike.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yike.user.entity.OpenDoorRecord;
import com.yike.user.param.OpenDoorRecordPageParam;

import com.yike.user.vo.OpenDoorRecordVo;
import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

/**
 * 店铺开门记录表 Mapper 接口
 *
 * @author Sakura
 * @since 2024-09-04
 */
@Mapper
public interface OpenDoorRecordMapper extends BaseMapper<OpenDoorRecord> {

    IPage<OpenDoorRecordVo> getOpenDoorRecordList(@Param("page") Page page,
                                                  @Param("param") OpenDoorRecordPageParam param);

    // 获取到店人数
    Integer getComeShopNumber(@Param("shopId") Long shopId, @Param("certainDate") String certainDate,
                              @Param("beginTime") String beginTime, @Param("endTime") String endTime);


}
